<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>12_Web Workers-js给html发送数据</title>
    </head>
    <body>
        <script>
            var worker = new Worker('./js/12_Web Workers-js给html发送数据.js');

            worker.onmessage = function(event){
                console.log(event.data);
            }
        </script>
    </body>
</html>